<!DOCTYPE html>
<html>
<head>
    <title>Tiled WMS</title>
    <link rel="stylesheet" href="../css/ol.css" type="text/css"/>

    <!--    <link rel="stylesheet" href="https://openlayers.org/en/v4.0.1/css/ol.css" type="text/css">-->
    <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
    <!--    <script src="https://openlayers.org/en/v4.0.1/build/ol.js"></script>-->
    <script type="text/javascript" src="../js/ol-debug.js"></script>


</head>
<body>
<div id="map" class="map"></div>
<script>
    var layers = [
        // new ol.layer.Tile({
        //     source: new ol.source.XYZ({
        //         url: 'http://t3.tianditu.com/DataServer?T=vec_c&x={x}&y={y}&l={z}',
        //         projection:"EPSG:4326"
        //     })
        // }),
        // new ol.layer.Tile({
        //     //extent: [117.909832, 24.427347, 118.346327, 24.792678],
        //     source: new ol.source.TileWMS({
        //
        //         // url: 'http://210.72.227.199:18084/geoserver/LAOWO/wms',
        //         // params: { 'LAYERS': '0', 'singleTile': true }
        //         url: 'http://210.72.227.199:18084/geoserver/LAOWO/wms',
        //         params: {'LAYERS': 'LAOWO:gis_osm_places_a_free_1', 'singleTile': true}
        //         // params: { 'service':WMS,version=1.1.0&request=GetMap&layers=LAOWO:gis_osm_places_a_free_1&styles=&bbox=-180.0,-90.0,180.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers }
        //
        //     })
        // }),
        // new ol.layer.Tile({
        //     //extent: [117.909832, 24.427347, 118.346327, 24.792678],
        //     source: new ol.source.TileWMS({
        //
        //         // url: 'http://210.72.227.199:18084/geoserver/LAOWO/wms',
        //         // params: { 'LAYERS': '0', 'singleTile': true }
        //         url: 'http://210.72.227.199:18084/geoserver/LAOWO/wms',
        //         params: {'LAYERS': 'LAOWO::la_TuDiLiYong', 'singleTile': true}
        //         // params: { 'service':WMS,version=1.1.0&request=GetMap&layers=LAOWO:gis_osm_places_a_free_1&styles=&bbox=-180.0,-90.0,180.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers }
        //
        //     })
        // })
        new ol.layer.Tile({
            //extent: [117.909832, 24.427347, 118.346327, 24.792678],
            source: new ol.source.TileWMS({

                // url: 'http://210.72.227.199:18084/geoserver/LAOWO/wms',
                // params: { 'LAYERS': '0', 'singleTile': true }
                url: 'http://210.72.227.199:18084/geoserver/LAOWO/wms',
                params: {'LAYERS': 'ZH_JingJi:2010_geo', 'singleTile': true}
                // params: { 'service':WMS,version=1.1.0&request=GetMap&layers=LAOWO:gis_osm_places_a_free_1&styles=&bbox=-180.0,-90.0,180.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers }

            })
        })
    ];
    var map = new ol.Map({
        layers: layers,
        target: 'map',
        view: new ol.View({
            center: [102.456977, 21.109395],
            zoom: 9,
            projection: "EPSG:4326"
        })
    });
</script>
</body>
</html>